﻿using System;
using System.Windows;

namespace 抽象工厂模式
{
   public class ShangHaiFactory:AbstractFactory
    {
        public override YaBo CreateYaBo()
        {
            return new ShangHaiYaBo();
        }
    }

    public class ShangHaiYaBo:YaBo
    {
        public override void Print()
        {
            MessageBox.Show("这个是上海的鸭脖");
        }
    }
}
